<template>
  <containerWrapper :widget="widget">
    <div class="grid-widget">
      <el-row>
        <gridColWidget
          :key="item.id"
          v-for="item in widget.cols"
          :parent-option="options"
          :parent="widget"
          :widget="item"
        />
      </el-row>
    </div>
  </containerWrapper>
</template>
<script setup>
import containerWrapper from './container-wrapper-render.vue'
import gridColWidget from './grid-col-render.vue'
defineOptions({
  name: 'grid-render',
})
defineProps({
  widget: {
    type: Object,
    default: () => {},
  },
  options: {
    type: Object,
    default: () => {},
  },
})
</script>
<style lang="less" scoped></style>
